The word "resident" applies only to natural persons and includes any person domiciled in the State, except a person who, though domiciled in the State, maintains no permanent place of abode within the State, but does maintain a permanent place of abode without the State, and who spends in the aggregate not to exceed 30 days of the taxable year within the State. In addition, it includes any person who maintains a permanent place of abode within the State and spends in the aggregate more than 183 days of the taxable year within the State, whether or not domiciled in the State during any portion of said period, and such a person shall be taxed the same as though he had been domiciled in the State during the entire taxable year. However, it does not include a person in the Armed Forces of the United States, whether in a land, sea or air service or any auxiliary corps or guard thereof, during any period when individuals are liable for induction for training and service under applicable law, if not domiciled in the State notwithstanding his maintenance of a permanent place of abode within the State and his spending an aggregate of more than 183 days in the State.
N.J.S. § 54:8A-3