How to set custom esptool “–before” reset method in PlatformIO

Use these options:

board_upload.before_reset = usb_reset
board_upload.after_reset = no_reset