In the Personal Info section of TT, enter your state of residence as MA. Indicate that you also lived in another state (NH) and then enter the date that you began living in MA. This will prompt the program to generate a part-year resident MA tax return.
All the income you earned after you began living in MA is taxable by MA.