State tax filing

After completing your federal return do your non resident NH return and then your resident MA return. MA will give you credit for any tax paid to NH so you won’t be double taxed.