Instead of adding a comment to explain this implicit importation, import the symbol explicitly:

    const { OS } = Cu.import("resource://gre/modules/osfile.jsm", {});

(The empty object second parameter prevents the importer from also implicitly importing that symbol and any others.)