If you worked in MA, your W-2 income is considered Massachusetts source income and it is taxable on your MA nonresident return. It is not considered wages earned outside Massachusetts.
You can claim on your CT resident return, credit for taxes paid to another state to avoid double taxation.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"