This article explains how to close all of your Safari tabs at once. These instructions work for iOS 12 and later, including iPadOS.
Use the tab menu to close all open tabs at once.
Tap and hold the Tab button. The button looks like two squares stacked on top of each other.
Tap Close All [#] Tabs.