I have state ID of MA but lived in NH from last last few months in my own condo. I do not want to change ID Massachusetts. how do I file state taxes NH and MA

Can I file my taxes for both states and keep my ID of MA forever. How do I split in two states my income is SS, Bank Interest and some from Vanguard.