RAIDZ2 Expansion - How to Rewrite Data for Full Capacity Recovery?

zfs rewrite -CPSr dataset should do what you want (-r), but CPS really are the most important options to avoid messing with snapshots and replication—if TrueNAS is lagging behind OpenZFS on these you may want to wait.
But rewriting/rebalancing is not that important. If this is really is a concern, avoid raidz expansion and go for “The Good Old Way”: Backup-Destroy-Restore.

Oh yes, you need to read on both zfs rewrite and the rebalancing script, as they both mess with existing snapshots in their own unique way.