Looks like Tailscale had a guide specifically for that


Tailscale
Access TrueNAS SCALE from anywhere · Tailscale Docs
Learn how to configure the Tailscale client on a TrueNAS SCALE server and securely connect multiple TrueNAS SCALE servers for ZFS replication.