Moved from NJ to NYC in the mid year and still work in the same job in NYC. Any credit to NJ tax?

I moved from NJ to NYC in the middle of last year while continuing to work in the same job in New York. My employer issued a single W-2 and have two different Line 15 for NY and NJ State separately, where NY State wages ( Box 16) is the same as the Box 1 and NJ State wages (Box 16) is about half of the Box 1. Am I eligible for any credit when completing part-year resident NJ tax form? if yes, How can I claim the double tax in TT?