Reliably finding clicks automatically without “false positives” is difficult.
“Paul L” has been making good progress on detecting vocal clicks (https://forum.audacityteam.org/t/updated-de-clicker-and-new-de-esser-for-speech/34283/1) and somewhere else on the forum is a plug-in that detects “peak inversion” (digital wrap-around), but as yet no-one has written a general solution for accurately detecting clicks.
Working with more than one track at a time is tricky with Nyquist. Where mono tracks are used it is easier to join them into one stereo track before processing, then split the stereo track back to two mono tracks after processing (the code here may then be useful: https://forum.audacityteam.org/t/ez-patch/22093/1)