Given any three numbers $\;x,y,z\;$ define
$$ X := e^{ix},\; Y := e^{iy},\; := e^{iz}\quad
\text{ and }\quad a := X^2,\; b := Y^2,\; c := Z^2. $$
Then, by definition of cotangent
$\; \cot(x-y) = i(a+b)/(a-b).\;$ Thus
$$ \cot(x-y)\cot(y-z) = -\frac{(a+b)(b+c)}{(a-b)(b-c)}. $$
Cycle, add, and use common denominator to get
$$ 1 - \sum_{cyc}\cot(x-y)\cot(y-z) = \frac{S}{ (a-b)(b-c)(c-a)} $$
where $$ S := (a\!-\!b)(b\!-\!c)(c\!-\!a) \!+\!
(a\!+\!b)(b\!+\!c)(c\!-\!a)\!+\!
(a\!-\!b)(b\!+\!c)(c\!+\!a)\!+\!
(a\!+\!b)(b\!-\!c)(c\!+\!a) .$$
Now $\;S\;$ expands to identically zero. There are several ways
to verify this. For example, if
$$ T(b) := (a-b)(b-c)+(a+b)(b+c) = (b+b)(c+a),$$
(which is equivalent to id$_{3,3,1,2e}$) then $S = T(b)(c-a) + T(-b)(c+a), $ but $ T(b)=-T(-b). $
Thus, $\;0 = S\;$ is the identity named as id$_{3,4,1,3b}$
in my collection of hundreds of Special Algebraic Identities. This answers
your main question.
You also asked
Follow-up question: is there a similar identity involving the elliptic function sn, cn, dn? I don't know the answer, but it is possible based on the context of the real world problem.
Depends on what precisely you mean by "similar identity". I suggest that you
look at my identities for those tagged [JE] just as id$_{3,4,1,3b}$. That
is, this identity is already satisfied by Jacobi sn, sc, sd. More precisely,
suppose the function $\;f\;$ is any one of $\;\sin,\;\tan,\;$sn, sc, sd.
Then
$$ 0 = f(a-b)f(b-c)f(c-a) + f(a+b)f(b+c)f(c-a) + \\
f(a-b)f(b+c)f(c+a) + f(a+b)f(b-c)f(c+a). $$
There are several other identities labeled [JE]
that all have the same solutions as this identity.
This is related to
MSE question 4088531
about functional equations for both sine and tangent.
Cos[x - y] Cos[y - z] Sin[z - x] + Cos[x - y] Sin[y - z] Cos[z - x] + Sin[x - y] Cos[y - z] Cos[z - x]andSin[x - y] Sin[y - z] Sin[z - x]in terms of products likeCos[x] Cos[y]^2 Sin[x]etc. Again I checked in Mathematica, they are identical. What would be my proof. But I admit that I didn't check manually on paper. – anecdote Dec 07 '22 at 01:10