MA and CT tax question

Hi Tax Experts,

 

We live in MA for the whole year 2022. I work from home. My wife works from home for the State of CT most of the week. She travels to work in CT once a week. Would you please help advise how we should file state tax?

 

Thank you!!