Hi
When is the best moment to resign?

Yargh! Listen ye well, lest blackest bilge be yer fancy, and tentacled scourge ye wish to court.
The neck, 'tis said. Aye, lad, the very spot! Lightly now, with gulping gullet apace and keen, yet here it be, be it that ye, may first espy the crawling cold of godless bone that scuttles spineward, and in the end grips king and fool alike - breath! Yarggh, breath it be ye forget, for black be the robe, and keen be the scythe, that mark ye, lad, even now, affixed to drag us all neath undering depths, to the shores of Yargghhh, where all alight.
That be how ye know, lad. That be how.
@Azurecloudhart https://www.chess.com/live/game/68668926955 I didn't do anything. I guess the opponent had a brainfart moment or misclicked, idk.