that's from star wars tales, which, while it's technically considered infinities, a select few stories (like this story and the one where vader fights darth maul's clone) are considered canon, while the rest are simply holodramas (similar to our movies) in universe.