1st question was your income greater than $6k if not, no non-resident return in CT. The rules for CT (then see comments below on if CT taxes are less than place work performed) <a rel="nofollow" target="_blank" href="
https://portal.ct.gov/DRS/Nexus/Connecticut-Source-Income-of-a-Nonresident---Nexus">https://portal.c... to compensation for services performed in Connecticut or income from a business, trade, profession, or occupation carried on in Connecticut (including income derived directly or indirectly by athletes, entertainers, or performing artists from closed-circuit and cable television transmissions of irregularly scheduled events if such transmissions are received or exhibited within Connecticut);"
I can add further that you may also have to pay non-resident Mass (I am assuming MA is Mass). Mass requires a non-resident return for income over $8k. "Compensation for personal services performed in Massachusetts, regardless of where paid. This includes but is not limited to wages, salaries, tips, bonuses, commissions, fees, and other compensation related to activities carried on in Massachusetts, regardless of where the compensation is paid. In the case of compensation for personal services, report all Massachusetts source income even though you didn't receive the entire amount. For example, include employer withholdings for federal income taxes, FICA contributions, medical insurance plans, or other similar withholding deductions in Massachusetts source income." <a rel="nofollow" target="_blank" href="
https://www.mass.gov/service-details/learn-about-massachusetts-gross-income-for-nonresidents">https:...>.
Non-Massachusetts employers
If you're a non-Massachusetts employer who conducts business or maintains an office in Massachusetts, you must withhold the amount determined for Massachusetts income tax purposes, minus any amount deducted and withheld for your own state. If there's no state withholding in your business's home state, you must withhold and send to us the full amount determined for Massachusetts purposes. Whether the employee works on the road, at home or in an office maintained by you, the employer, does not affect your withholding obligation. <a rel="nofollow" target="_blank" href="
https://www.mass.gov/guides/withholding-taxes-on-wages">https://www.mass.gov/guides/withholding-taxe...>
You would complete the non resident returns first and only then complete the NY return. You would get a credit on the NY return for double taxed income. During the personal section of the federal return, only answer yes that you worked in another state, IF you met the criteria needed to file in them.
**I don't work for TT. Just trying to help. All the best.
***Say "Thanks" by marking as BEST ANSWER and clicking the thumb icon in a post and that I solved your question
**Mark the post that answers your question by clicking on "Mark as Best Answer" I am NOT an expert and you should confirm with a tax expert.