That sounds like a violation of the Commerce Clause to me.
NJ has an exit tax.
It’s all within a state. But I am sure they could find judges up through the circuit level to say “of course it’s legal”. Then probably SCOTUS would be 4-4 with Roberts breaking the tie by siding with the lefties again because he’s made it clear that he will not interfere with the ability of the states to force the people to bend their knees.