https://en.wikipedia.org/wiki/Red_flag_law it has a lot of names. “Risk Protection Order”, “Proceedings for the Seizure and Retention of a Firearm”, etc.
States do it differently but often the “risk” is whisked away to an institution or sometimes allowed to stay free-ish but monitored.
—