working in multiple states

I worked in NH until 9/6/24, when I moved to MA.  How do I calculate and submit taxes for each state.