Open the Safari app on your iPhone. Tap and hold the tabs icon, which looks like two overlapping boxes and appears in the bottom-right corner of your screen. In the pop-up menu, tap “Close All Tabs.” Confirm that you want to close all the open tabs in the browser by tapping “Close All Tabs.”
Long press on the tab button and select "close all"