          case 'JUMP_TO_ACTION':
          case 'JUMP_TO_STATE':
            return setState(extractState(message))
          case 'IMPORT_STATE': {
            const { computedStates } = payload.nextLiftedState
            const { state } = computedStates[computedStates.length - 1] ?? {}
            return state !== undefined && setState(state)
          }
        }
      }
    })

    return {
      ...program,
      setState,