Sometimes I need to smooth the border edges of the mesh in ZBrush. To do this you can go to Brush > Smooth Brush Modifiers > Minimum Connected Points To Smooth and set the value to 1.

Smooth the border of the mesh in ZBrush.