Rebalancing after vdev expansion

I’ve seen people discussing a rebalancing script to run after expanding a vdev, but I don’t think I’ve ever seen anyone link to it? I found this, but I’m not sure if it’s the right thing? It says you can’t use the data while rebalancing, which is not a caveat I’d previously seen mentioned.