A number of Switch titles include this handy feature, allowing multiple Switch consoles in the same vicinity to create an offline adhoc wifi connection.

At the moment you need an Internet connection to play multiplayer on 2 devices. It would be really cool if TJ&E multiplayer could be enjoyed during long flights, train rides, anywhere you might not sustain a reliable Internet connection.