After you file

For the state returns ... you will have to file both a NY non resident and NJ resident return and you should get a credit on the NJ return for the NY taxes you pay and they may also add a credit  ... review both returns carefully to see what the NJ refund consists of.