Moving out of New Jersey is easy. Stopping New Jersey taxes is a different act, and it happens on paper: New Jersey keeps treating you as a resident until the record shows otherwise, and the burden of showing otherwise is domicile continues until a new permanent home is established; the party asserting the change demonstrates it — facts and circumstances — the permanent home you intend to return to.
Two tests decide it. Cross 183 days with a New Jersey abode still available and you are taxed as a resident regardless of where you claim to live — and see day-counting rules. Or keep the day count clean but leave the life-pattern evidence pointing at New Jersey, and domicile does the same work. Everything on this page exists to answer one question: if Division of Taxation asks, does your record hold?