The method you need is showPicker() from HTMLInputElement:
showPicker()
HTMLInputElement
timePickerRef.current?.showPicker();
For more information: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker