YT-DLX: The Ultimate Multimedia Downloader
YT-DLX is a powerful and versatile tool that allows you to download audio and video content from a wide range of sources, including YouTube, Vimeo, and many more.

Documentation
YtDlx.Account.History()
Fetches the user's watch history, including videos and shorts, with optional sorting.
Watch History
Fetch your YouTube watch history with filtering and sorting
Parameters
options
An object containing the configuration options.
options.cookies
The user's cookies as a string. Required.
options.verbose
(Optional) Enable verbose logging.
options.sort
(Optional) Specify how the watch history should be sorted. Available:
"oldest"
"newest"
"old-to-new"
"new-to-old"
Return Value
An EventEmitter instance for handling events during watch history fetching.
Emits "data"
On success: object containing status and history (Shorts, Videos).
Emits "error"
On failure: error message or object.