modern browsers support the import syntax natively, so it really shouldn't be a lot of overhead to import it.
On the other hand, with bundling though it’s totally fine to have a module just for these two helpers. (Even better if it can be inlined, but I haven’t seen anything supporting this since Prepack, which is still POC I think.)
import { x } from '/a.js';
import { y } from '/b.js';
Does not take longer than this: import { x } from '/a.js';
Because the message to the server "Give me b.js" goes out in the same network packet as "Give me a.js" and the data of b.js comes back in the same packet(s) as the data of a.js.