import type { UserEvent } from 'vitest/browser' import type { UserEventCommand } from './utils' export const clear: UserEventCommand = async ( context, selector, ) => { const browser = context.browser await browser.$(selector).clearValue() }