@meghane_e you might find KevinH's
TOCSaver Sigil plugin helpful. It'll insert hidden heading tags based on an existing NCX TOC. After running the plugin you can then regenerate the TOC with Sigil via Tools > Table of Contents > Generate Table of Contents.