Deductions & credits

The IRS deals with Federal taxes, not state. This is an issue between states. If you live in one state and work in another, it depends which states they are. Some states have reciprocity, some give you a credit for taxes paid to another state. It is best to find the procedure for your states.