Use basta to detect dead code in your python, js/ts projects. Basta written on rust - as a result fast and memory efficient.