I moved from NH to MA in July of 2024. MA states that in order to be a MA resident, you have to live in the state the majority of the year. I did not. Am I a MA resident?

I started paying MA state income tax when I moved (switched my address at work), should I file as a NH resident?