The existing VatWorkerService is a platform agnostic interface, which the extension implements using iframes and message ports. There are a few details (promise management, delete all calling forEach(delete)) which can be implemented agnostically. Once we are ready to target another platform, e.g. node, it would be nice to pull these details (and their tests) out into the @ocap/kernel package by upgrading VatWorkerService to an abstract base class.
Previous Work
#131