Force a cancellation natural before accidentals
The following example shows how to force a natural sign before an accidental.
\version "2.24.0"
\relative c' {
\key es \major
bes c des
\tweak Accidental.restore-first ##t
eis
}
int(0)