N/currentRecord can also give it to you as a prope...
# suitescript
c
N/currentRecord can also give it to you as a property (record has the property as well) of ".type"