Take reference from this comment - https://github.com/tscircuit/core/pull/1514#pullrequestreview-3345535623