NY is so aggressive they will count days you change planes at JFK on international travel if you get audited and send a work email while at the airport. It's ridiculous.
You get credits for taxes paid to other states generally but it can be a giant PITA.