The best structure for a narrative aiming for a comedic ending would be:
by having the main characters resolve conflicts in a peaceful way.
This approach typically allows for humor to arise from misunderstandings, quirks of the characters, or the irony of the situation, leading to a light-hearted resolution rather than a serious consequence.