addAction(action, callback) {
    const { id } = action;

    if (!id) throw new Error("Action must provide a unique ID");

    this.actions.set(id, { action, callback });

    const actions = Array.from(this.actions.values()).map(({ action }) => action);

    this.store?.setActions(actions);
  }
@param {import("../stores/Action.js").Action} action