Scroll container (window or HTMLElement). Defaults to window.
Scroll behavior: "smooth" or "auto". Defaults to "smooth".
Optional offset from bottom. Can be negative. Defaults to 0.
OptionalscrollHeight: numberOptional override for scroll height.
Scrolls the specified container to the bottom.
Supports
windowor anyHTMLElementwith optional smooth scrolling and offset. Can override scroll height for testing purposes.