State tax filing

Based on what you say,

your wife is a part-year resident of both states.

where do you reside in 2023?