Moved from NJ to NYC but still working in NJ

Hey! As subject states I moved from NJ to NYC mid-way through the year but still work in NJ. Most questions I looked up described the opposite scenario of moving from NYC to NJ or people that worked in NYC throughout. I was wondering the order to fill the state returns in and which one is the one to which the credit applies. As things currently stand I'm owing a chunk to NYC despite applying a credit from the taxes paid to NJ (not sure I'm using the right amount?). Would appreciate any help! Thanks in advance.