1. Go to the Tabs manager:
2. Tap 'X' in the upper right corner or tap 'Close all' to exit all the tabs:
You can also close a single tab with a swipe to the left/right.