In the collection of spheres Collection of sphere definitions are also cubes with rounded corners as a transition. See section H and I.
In the Collection of examples from discourse.threejs.org you will find
CheckerboardRoundedBox and RoundEdgedBoxFlat
Older from 2017 at top: discourse.threejs.hofk.de
See also Addon to create special / extended geometries
Try out: Magic Box