Ninja has plenty of utility for gap closing situations.It has much faster base movement speed than any other class thanks to the fleet of foot trait.
We can also freely spam throwing dagger when running back towards enemies or if it's on cooldown cast one of our many ranged ninjitsu skills while running towards the enemy.
These advantages along with shukuchi make Ninjas quite effective in sustaining dps when there is a gap.