No municipality may pass any an ordinance that restricts or prohibits, or imposes any tax, licensure requirement, or licensure fee on the possession, storage, transportation, purchase, sale, transfer, ownership, manufacture, or repair of firearms or ammunition or their11 components. Any ordinances ordinance prohibited by this section are is null and void. The attorney general shall bring an action in the name of the state for injunctive relief against any municipality that has passed an ordinance in violation of this section. A court shall grant any person charged with a violation of an ordinance prohibited under this section reasonable costs, expenses, and attorney's fees.16