If you got a gun without permit you go to jail.
There is a timeframe in which to give away your gun, maybe you even get compensated if you do.
Enforcement is key obviously.
Poof 99% of guns gone.
Worked just fine in Australia which I think had more guns per person than the US but I might be mistaken and can’t be arsed to look up a source for you to ignore.