Deductions & credits

In this situation, if we choose to file federal as NR, how about the state tax return? If I worked in NY and lived in NJ, should i file both states as NR?