Military person lives in NJ but stationed in Massachusetts for 3 months. Wife and son live in Mass for 6 months. Do they need to file Massachusetts State Tax return?

Wife didn't work or receive any income.