Enable the prompt Do You Want To Close All Tabs? in Microsoft Edge.
Here you can download the following ready-to-use Registry files. One of the files enables the Do You Want To Close All Tabs? confirmation prompt in Microsoft Edge, the other one disables it.