That exists! @chmac pointed that one out, it’s not documented
api.export([ 'Foo', ], ['server', 'client'], {testOnly: true});