Well, you should check with both states' department of revenue for forms to use, my guess is that you will need to file tax return in both states, maybe one as resident and one as part-resident. Forms 1040 and 1040-NR are for federal tax.