Living in NY and working in NJ. How do I file the taxes for NJ, do I get the whole state income tax refund for NJ?

In other wage adjustments W-2. I am having an issue to input my gross income for the job I worked for in NJ. I input the value 0 because I have no other wages besides the final wages given, and they're all the same for NY and NJ