You can pass multiple custom post types in an array for 'post_type', as in:

    'post_type' => array('books', 'stories', 'movies')

Your code seems to try to do this, but the syntax is a bit off, it should be:

    $recent_posts = wp_get_recent_posts(
        array(
            'post_type' => array( 'books', 'stories', 'movies' ),
        )
    );


You can find more details about every available args in the [Documentation for WP_Query][1].


  [1]: https://developer.wordpress.org/reference/classes/wp_query/