Get your taxes done using TurboTax

You do not need to file a New York return.  You only need to file the Maryland return because you are considered a resident of Maryland.  You will report all of your income on the Maryland return; this includes the income from New York and anywhere else.  You cannot claim to be a part year resident just because you moved out of Maryland.  You have to establish residency somewhere else before you will no longer be considered a Maryland resident.  This applies to being a nonresident or a part-year resident.