async function withStorage(action) {
      /** @type {!shaka.offline.Storage} */
      const storage = new shaka.offline.Storage(player);

      try {
        await action(storage);
      } finally {
        await storage.destroy();
      }
    }
@param {function(!shaka.offline.Storage)|
        function(!shaka.offline.Storage):!Promise} action
@return {!Promise}