State tax filing

I also found this on the Mass.gov DOR website:

 

If your employer mistakenly withheld Massachusetts income tax, file a Massachusetts Nonresident/Part-Year Resident Return, Form 1-NR/PY, to request a refund. Submit a letter from your employer along with the return, which verifies that you didn't work in Massachusetts.