How to accurately determine whether two triangles intersect with three.js?

I would like to know how to determine if two triangles in space intersect using three.js. I have tried various methods but haven’t been able to achieve this accurately.
If you have any good suggestions, I would greatly appreciate it.

I am looking forward to your reply.