Forty Tabs

You have forty tabs. The best route is not the shortest one, it is the one that crosses the most borders.