JavaScript Deselect everything that is selected


Example

let sel = document.getSelection();
sel.removeAllRanges();