Check if the current window is the window that triggered the beep using
${window.buffer} != ${buffer}
Set trigger conditions like this so that highlights beep for current window, but private messages won't beep in current window.
/set trigger.trigger.beep.conditions "${tg_highlight} || (${tg_msg_pv} && (${window.buffer} != ${buffer}))"