@Andrew_Duncan also check this post Why does my header code no longer work in Typst 0.13? - #2 by Andrew which has a useful snippet if you want to do it without a package:
#let current-chapter-title() = context {
let headings = query(heading.where(level: 1).before(here()))
if headings == () { panic("At least one heading must be defined.") }
headings.last().body
}
#set page(footer: current-chapter-title())
= Heading
Have you found a solution that works for you?