File a non-resident return showing you did not live there, made no money there, but did pay taxes there. Montana will refund the money.
Your W2 should show Montana withholdings. The program will transfer that into the state for you. Just go through and answer.