How long does NVM Defrag usually take?

I clicked the button thinking it won’t take like hours, but I am worried it may take hours and that I should never disconnect the device for however-long it would take.

It should never take more than 10-15 seconds, but it’s usually just a couple seconds. If it takes longer than that, try the other NVM option after a reconnect.