State Tax married living together and part separate - Need Help

Hi Everyone,

 Can please someone guide me on how to file my taxes this year with the following situation:

 

1) Myself and my wife lived together in Texas till June 2022. At that time only I was working.

2) My wife moved to New Jersey in June 2022 for a job. While I stayed in Texas for my job.

3) In November I left my job in Texas and joined a new job moved to New Jersey.

 

How do I file my taxes so that I don't have to pay new jersey state tax on my income from June to November? (my wife will definitely pay her portion) Also, for a majority of year we lived together and in past I have always filed my taxes Married filing jointly.

 

TIA