You accidentally found yourself on one of those malicious sites that won’t let you leave unless you agree to their demands? Happens to the best of us.
After forcing your window to close, you’ll notice Edge will always try to force you to relive that nightmare. It may not be a virus. So scanning it with virus software will turn up nothing. It’s merely Edge trying to recover the last thing you had open before the perceived “crash”. You’ll want to reset Windows Edge, but can’t by conventional means.
It seems the solution out there involving editing your registry. Forget that noise.
To stop Windows Edge from opening all the unwanted tabs after a crash or forced close:
Simply just delete everything in “C:\Users\\AppData\Local\Packages\Microsoft.MicrosoftEdge_____)\AC\MicrosoftEdge\User\Default\Recovery\Active”
Some of us want very much to like Microsoft again. But our faith is always rewarded with stupid crap like this.