I work in MA but I move to rhode island Jan 1st

Hi, im planning to move to RI Jan 1st, how do I file taxes if I am working in MA and have worked there for the whole tax season. Do I wait until next year? Or do I file non resident to MA still. Also do I have to fill out two W-2s at my job! Please help