Got married, moved from NJ to NY but still work in NJ

Hi

I have a situation I need some help with.  I moved from NJ to NY in April 2021.  I got married in Aug 2021 and have been living in NY since April.  However, I still work in NJ and have been working in NJ all year.  How do I file if I lived in 2 different states, sold my property in NJ, got married, and work in a state I don't live in so I don't have to pay taxes twice but get a return for the property taxes I paid in NJ from Jan-April?